<?php
session_start();
 //include('databaseconnection.php');

if(isset($_SESSION['lang']))
{
unset($_SESSION['lang']);
}
if(isset($_SESSION['languages']))
{
unset($_SESSION['languages']);
}
include ("header2.php");

?>

<table border="0"  cellspacing="1" cellpadding="2"  align="left" width="100%">

			 <tr>
			   <td colspan="2" align="center" class="font_size" bgcolor="#869FFF" ><font size="+3" face="Times New Roman" >Suggest Term</font>
	               
		           </td></tr>
<tr><td><font color='red'><b><?php if(isset ($_GET['msgsu'])){
                echo $_GET['msgsu'];
            }?></b></font></td></tr>
			  <form  action="insertaddsuggestion.php" method="post">

               <tr><td  align="right" bgcolor="#D4D4D4" class="font">Term : </td>

                   <td  bgcolor="#ABADF1"><input type="text" name="term" size="40" value=""></td></tr>

               <?php

$result=mysql_query("SELECT * FROM domain");

            echo "<tr><td  align='right' bgcolor='#D4D4D4' class='font'>Domain: </br></br> <font color='red'>or</font> Add new Domain:</td>";

               echo "<td  bgcolor='#ABADF1'>";
				echo "<select name='domain' value=''>";
				echo "<option value=''>Select domain</option>";
				   while($row=mysql_fetch_array($result))
{
$value=$row['domain'];
echo "<option value='$value'>$value</option>";
}
				   
                 echo "</select>";
				   echo "   </br></br> <input type='text' name='newdomain' size='40' value=''></td>   </tr>";
				 
$resultl=mysql_query("SELECT * FROM language");

            echo "<tr><td  align='right' bgcolor='#D4D4D4' class='font'>Language: </br></br> <font color='red'>or</font> Add Language:</td>";

               echo "<td  bgcolor='#ABADF1'>";
				echo "<select name='language' value=''>";
				echo "<option value=''>Select language</option>";
				   while($row=mysql_fetch_array($resultl))
{
$value=$row['language'];
echo "<option value='$value'>$value</option>";
}
				   
                 echo "</select>";
				   echo "   </br></br> <input type='text' name='newlanguage' size='40' value=''></td>   </tr>";
				   ?>
				   
				   
				 <tr><td  align="right" bgcolor="#D4D4D4" class="font">Meaning : </td>

                   <td  bgcolor="#ABADF1"><input type="text" name="newsuggestion" size="40" ></td></tr>
				     

                <tr><td bgcolor="#D4D4D4" > </td>
                  <td   colspan=2 bgcolor="#ABADF1" align="right" ><input name="submit" type="submit" value="Suggest Term"  /></td>
                </tr>

             </form>

			  
			   </table>
<?php
include ("footer.php");
?>